package com.nxxskj.alcohol.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nxxskj.alcohol.bean.User;
import com.nxxskj.alcohol.mapper.UserMapper;
import com.nxxskj.alcohol.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
   @Autowired
    private UserMapper userMapper;


    @Override
    public List<User> getallUsersByUser(User user) {
        return userMapper.getallUsersByUser(user);
    }
}
